package org.worthydots.access.jpa.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Station implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private String code;
	private String name;
	private String location;
	private Double latitude;
	private Double longitude;
	private int numberOfTrains;

	public Station() {
		
	}

	public Station(String code, String name, String location, Double latitude, Double longitude, int numberOfTrains) {
		super();
		this.code = code;
		this.name = name;
		this.location = location;
		this.latitude = latitude;
		this.longitude = longitude;
		this.numberOfTrains = numberOfTrains;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public int getNumberOfTrains() {
		return numberOfTrains;
	}

	public void setNumberOfTrains(int numberOfTrains) {
		this.numberOfTrains = numberOfTrains;
	}

	public String toString() {
		return code + " " + name + " " + location + " " + latitude + " " + longitude + " " + numberOfTrains;
	}
}
